export default {
  url: "/do/select/task",
  conditionLimit:null,
  selectable: false,
  showIndex: false,
  compact: 220,
  path: 'contract/task',
  title: "任务管理",
  entitys: [{"name":"id","label":"编号","type":"search"},{"name":"creator","label":"创建人","type":"user"},{"name":"createGmt","label":"创建时间","type":"date"},{"name":"updateGmt","label":"更新时间","type":"date"},{"name":"title","label":"任务名称"},{"name":"type","label":"任务类型","code":"cfg_taskType"},{"name":"start","label":"开始时间","type":"date"},{"name":"end","label":"结束时间","type":"date"},{"name":"executor","label":"任务执行人","type":"user"},{"name":"explain","label":"任务说明"},{"name":"file","label":"附件"},{"name":"compamyId","label":"所属公司","type":"search","depend":"company"},{"name":"finishContext","label":"完成内容","type":"textarea"},{"name":"finfishFile","label":"完成附件"},{"name":"contractId","label":"所属合同","type":"search","depend":"contract"},{"name":"status","label":"是否完成","type":"switch"}],
  columns: ["id","title","contractId","type","executor","start","end","status"],
  condition: [],
  slots: {
      header$() {
      return (
        <>
        <z-action p='ngdb059y' label='添加任务' mode='dialog' fields={["title","type","start","end","executor","explain","file","contractId"]} type='primary' url='/do/put/task' />
        </>
      )
    },
    action$({ row }) {
      return (
        <>
          <z-action p='6l1shpf4' label='编辑' mode='dialog' fields={["title","type","start","end","executor","explain","file","status"]} link data={row} url='/do/patch/task' includeTitle='r' />
<z-action p='7fgqbn93' label='删除' mode='confirm' link data={row} url='/do/delete/task' />
        </>
      )
    }
  }
}
  